package com.huilian.iotbox.mqtt.server.base.dao;

import com.huilian.iotbox.data.dto.OrderItemDto;
import com.huilian.iotbox.data.po.OrderItem;
import com.huilian.iotbox.data.vo.OrderItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 龙 路 飞
 * @CreateDate: 2023-08-10 16:35
 * @Description:
 */
public interface OrderItemDao {
    /**
     * 新增order_item
     */
    Integer insert(OrderItem orderItem);

    List<OrderItemVo> findOrderItemList(String payNo,String deviceNo);

    Integer update(OrderItemVo orderItemVo);

    List<OrderItem> findOrderItemListByOrderId(Long orderId);

    OrderItemVo findOrderItem(String payNo, String deviceNo);

    OrderItemVo findOrderItemCountByOrderId(Long orderId, Long orderItemId);

    OrderItemVo findSumShipment(Long orderId);

    List<OrderItemVo> findAllByOrderId(@Param("orderId") Long orderId,@Param("displayRackId") Long displayRackId);

    OrderItemVo getOrderItem(OrderItemDto orderItemDto);

    List<OrderItem> findOrderItemListByPayNo(String payNo,String deviceNo);
}
